package com.onec.service.thread;

/**
 *
 */
public class ThreadPoolUtilAction {


  /**
   * 创建一个新的线程
   */
  public static void createThread() {

    Thread thread = new Thread(() -> {
      System.out.println("ccccccc");
    });

    System.out.println(thread.getState());
    System.out.println(thread.getName());
    System.out.println(thread.getPriority());

    thread.start();
  }

}
